load("//bzl:cpp_unittest.bzl", "cpp_unittest")

# TODO(kgk): Enable once @boost.crc is added to bcr. See:
# https://github.com/bazelbuild/bazel-central-registry/issues/3619
# cpp_unittest(
#     name = "checksum_test",
#     srcs = ["ChecksumTest.cpp"],
#     deps = [
#         "//folly:benchmark",
#         "//folly:portability",
#         "//folly:random",
#         "//folly/external/fast-crc32:avx512_crc32c_v8s3x4",
#         "//folly/external/fast-crc32:neon_crc32c_v3s4x2e_v2",
#         "//folly/external/fast-crc32:neon_eor3_crc32c_v8s2x4_s3",
#         "//folly/external/fast-crc32:sse_crc32c_v8s3x3",
#         "//folly/hash",
#         "//folly/hash:checksum",
#         "//folly/hash/detail:checksum_detail",
#         "//folly/portability:gflags",
#         "//folly/portability:gtest",
#         "@boost.crc",
#     ],
# )

cpp_unittest(
    name = "farm_hash_test",
    srcs = ["FarmHashTest.cpp"],
    deps = [
        "//folly/hash:farm_hash",
        "//folly/portability:gtest",
    ],
)

cpp_unittest(
    name = "hash_test",
    srcs = ["HashTest.cpp"],
    deps = [
        "//folly:conv",
        "//folly:map_util",
        "//folly:random",
        "//folly:range",
        "//folly/hash",
        "//folly/portability:gtest",
    ],
)

cpp_unittest(
    name = "spooky_hash_v1_test",
    srcs = ["SpookyHashV1Test.cpp"],
    deps = [
        "//folly/hash:spooky_hash_v1",
        "//folly/portability:gtest",
        "//folly/portability:time",
        "@glog",
    ],
)

cpp_unittest(
    name = "spooky_hash_v2_test",
    srcs = ["SpookyHashV2Test.cpp"],
    deps = [
        "//folly/hash:spooky_hash_v2",
        "//folly/portability:gtest",
        "//folly/portability:time",
        "@glog",
    ],
)

cpp_unittest(
    name = "traits_test",
    srcs = ["traits_test.cpp"],
    deps = [
        "//folly/hash:traits",
        "//folly/portability:gtest",
    ],
)

cpp_unittest(
    name = "murmur_hash_test",
    srcs = ["MurmurHashTest.cpp"],
    deps = [
        "//folly/hash:murmur_hash",
        "//folly/portability:gtest",
    ],
)
